<?php print $form_validation; ?>

<fieldset>
<legend><?=tr('User Data', 'users')?></legend>

<?php print WidgetInput::output('name', tr('Username:', 'users'), $form_data) ?>
<?php print WidgetInput::output('email', tr('E-mail:', 'users'), $form_data) ?>

<?php 
if ($context == 'edit') {
	print html::note(tr('If the e-mail changes, the user gets a mail send to the new address to confirm this address exists.', 'users'));

	print WidgetInput::output('emailstatus', tr('E-mail Status:', 'users'), $form_data, WidgetInput::SELECT, array('options' => Users::get_email_statuses()));
}
?>

<?php print WidgetInput::output('pwd1', tr('Password:', 'users'), $form_data, WidgetInput::PASSWORD, array('autocomplete' => 'off')) ?>
<?php print WidgetInput::output('pwd2', tr('Repeat Password:', 'users'), $form_data, WidgetInput::PASSWORD, array('autocomplete' => 'off')) ?>

<p><?php print tr('Leave these fields empty to not change the password.',  'users')?></p> 

<?php print WidgetInput::output('roles', tr('Roles:', 'users'), $form_data, WidgetInput::MULTISELECT, array('options' => $role_options))?>
</fieldset>
